home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / scheme / schematk / src_1152.lha / Main.subproj / SchemeProtocol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-09  |  2.2 KB  |  72 lines

  1. /* Copyright รก 1991 Gustavus Adolphus College.  All rights reserved.
  2.  *
  3.  * Schematik was developed by Gustavus Adolphus College (GAC) with
  4.  * support from NeXT Computer, Inc.  Permission to copy this software,
  5.  * to redistribute it, and to use it for any purpose is granted,
  6.  * subject to the following restrictions and understandings.
  7.  *
  8.  * 1. Any copy made of this software must include this copyright
  9.  * notice in full.
  10.  *
  11.  * 2. Users of this software agree to make their best efforts (a) to
  12.  * return to the GAC Mathematics and Computer Science Department any
  13.  * improvements or extensions that they make, so that these may be
  14.  * included in future releases; and (b) to inform GAC of noteworthy
  15.  * uses of this software.
  16.  *
  17.  * 3. All materials developed as a consequence of the use of this
  18.  * software shall duly acknowledge such use, in accordance with the
  19.  * usual standards of acknowledging credit in academic research.
  20.  *
  21.  * 4. GAC makes no express or implied warranty or representation of
  22.  * any kind with respect to this software, including any warranty
  23.  * that the operation of this software will be error-free.  ANY
  24.  * IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR
  25.  * PURPOSE IS HEREBY DISCLAIMED.  GAC is under no obligation to
  26.  * provide any services, by way of maintenance, update, or otherwise.
  27.  *
  28.  * 5. In conjunction with products arising from the use of this
  29.  * material, there shall be no use of the name of Gustavus Adolphus
  30.  * College nor of any adaptation thereof in any advertising,
  31.  * promotional, or sales literature without prior written consent
  32.  * from GAC in each case.
  33.  */
  34.  
  35. #import <objc/Object.h>
  36.  
  37. extern int schemePid;
  38.  
  39. @interface SchemeProtocol:Object
  40. {
  41.     id    interactionWin;
  42. }
  43.  
  44. - init;
  45.  
  46. @end
  47.  
  48. @interface SchemeProtocol (SchemeProcess)
  49.  
  50. - (int)schemePid;
  51. - send:(STR)aString;
  52. - sendNul;
  53. - sendSignal:(int)aSignal;
  54. - sendGraphicsWindow:(int)windowNum;
  55. - terminate:sender withPrejudice:(BOOL)aBoolean;
  56.  
  57. @end
  58.  
  59. @interface SchemeProtocol (InteractionWindow)
  60.  
  61. - sendMessage:(STR)aString;
  62. - sendQuery:(STR)aString;
  63. - sendValue:(STR)aString;
  64. - sendSpecialValue:(STR)aString withHashCode:(STR)hashString;
  65. - sendGraphics:(STR)aString;
  66. - sendOutput:(STR)aString;
  67. - sendPrompt:(STR)aString;
  68. - sendError:(STR)aString;
  69. - showRunState:(int)aState;
  70.  
  71. @end
  72.